package com.secondhand.service.Impl;

import com.secondhand.domain.user_good;
import com.secondhand.mapper.user_goodMapper;
import com.secondhand.service.user_goodService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Log4j2
@Service
public class user_goodServiceImpl implements user_goodService {
    @Autowired
    user_goodMapper userGoodMapper;

    @Override
    public boolean add(user_good usergood) {

        int res = userGoodMapper.insert(usergood);
        return res>0;
    }
}
